package com.git.bds.mr.records.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 修改附件表	
 * </p>
 *
 * @author 成大事
 * @since 2022-09-27 14:48:01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("attachment")
@ApiModel(value = "Attachment对象", description = "修改附件表	")
public class Attachment extends Model<Attachment> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("submit_id")
    private Long submitId;

    @ApiModelProperty("附件")
    @TableField("enclosure")
    private String enclosure;


    public static final String ID = "id";

    public static final String SUBMIT_ID = "submit_id";

    public static final String ENCLOSURE = "enclosure";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
